package org.clockworkmages.games.anno1186.model.character;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;

import org.clockworkmages.games.anno1186.model.option.Option;

public class NonPlayerCharacter
		extends GameCharacter {

	private String id;

	private String description;

	private List<SpecialAttack> specialAttacks = new ArrayList<SpecialAttack>();

	private String subduingText;
	private String subduedText;

	private List<Option> victoriousOptions = new ArrayList<Option>();
	private List<Option> defeatedOptions = new ArrayList<Option>();
	private List<Option> subduingOptions = new ArrayList<Option>();
	private List<Option> subduedOptions = new ArrayList<Option>();

	private String fleeTo;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public List<SpecialAttack> getSpecialAttacks() {
		return specialAttacks;
	}

	public void setSpecialAttacks(List<SpecialAttack> specialAttacks) {
		this.specialAttacks = specialAttacks;
	}

	public String getSubduingText() {
		return subduingText;
	}

	public void setSubduingText(String subduingText) {
		this.subduingText = subduingText;
	}

	public String getSubduedText() {
		return subduedText;
	}

	public void setSubduedText(String subduedText) {
		this.subduedText = subduedText;
	}

	@XmlElement(name = "victoriousOption")
	public List<Option> getVictoriousOptions() {
		return victoriousOptions;
	}

	public void setVictoriousOptions(List<Option> victoriousOptions) {
		this.victoriousOptions = victoriousOptions;
	}

	@XmlElement(name = "defeatedOption")
	public List<Option> getDefeatedOptions() {
		return defeatedOptions;
	}

	public void setDefeatedOptions(List<Option> defeatedOptions) {
		this.defeatedOptions = defeatedOptions;
	}

	@XmlElement(name = "subduingOption")
	public List<Option> getSubduingOptions() {
		return subduingOptions;
	}

	public void setSubduingOptions(List<Option> subduingOptions) {
		this.subduingOptions = subduingOptions;
	}

	@XmlElement(name = "subduedOption")
	public List<Option> getSubduedOptions() {
		return subduedOptions;
	}

	public void setSubduedOptions(List<Option> subduedOptions) {
		this.subduedOptions = subduedOptions;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Override
	public boolean isEnemy() {
		return true;
	}

	@XmlAttribute
	public String getFleeTo() {
		return fleeTo;
	}

	public void setFleeTo(String fleeTo) {
		this.fleeTo = fleeTo;
	}

}
